import numpy as np
from sklearn import datasets
iris = datasets.load_iris()
iris_data=np.array(iris.data)
print
iris_data.sort()
print(iris_data)
print
print(iris_data[:5])
print
sepal_length = iris_data[:,3]
print(sepal_length)
#
# #去重，求和
print
uni_iris = np.unique(sepal_length)
print(uni_iris)
print
print(sepal_length.sum())
print
print(np.cumsum(sepal_length))


print(np.mean(sepal_length))
print(np.std(sepal_length))
print(np.var(sepal_length))
print(np.min(sepal_length))
print(np.max(sepal_length))